import { axiosRequest } from '@/utils/request'
import { lcglModulePrefix } from '../../config'

/**
 * 查询
 * @param {*} param
 */
export const getList = (param) => {
  return axiosRequest(`${lcglModulePrefix}/task/todoPage`, '查询', 'GET', param)
}

/**
 * 审批
 * @param {*} param
 */
export const handleAudit = (param) => {
  return axiosRequest(`${lcglModulePrefix}/task/handleTask`, '审批', 'POST', param)
}

/**
 * 批注
 * @param {*} param
 */
export const handleComment = (param) => {
  return axiosRequest(`${lcglModulePrefix}/process/deleteProcIns/${param.id}`, '警告', 'POST', {})
}

